package com.atguigu.java.ai.langchain4j.assistant;

import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,chatModel = "qwenChatModel",chatMemory ="chatmemory" )
public interface MemoryChatAgent {

    @SystemMessage("你是一个领导，请用领导的语气回答我的问题")
    String chat(String userMessage);
}